grid
Type
property
Summary
Specifies whether dragged objects are snapped to a grid.
Syntax
set the grid to {true | false}
Description
Use the grid property to align objects easily.
If the grid property is set to true, any object the user moves or resizes is moved or resized to the nearest point on the grid. If the object is moved, its top and left are multiples of the gridSize. If the object is resized, its height and width are multiples of the gridSize.
If the grid is false, moved and resized objects are not constrained and are moved to exactly where the user puts them.
The setting of the grid property does not affect the move command, or setting properties such as the location or rectangle of the object, or nudging objects a single pixel with the arrow keys. Only mouse movements are affected.
Examples
set the grid to true
Related
constant: left
glossary: object, property, pixel, constrain, command
keyword: top, point, rectangle
property: location, slices, height, properties, width, gridSize
command: move
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile